//
//  utils.h
//  remote-execute
//
//  Created by  AbbyCin on 11/1/14.
//  Copyright (c) 2014  AbbyCin. All rights reserved.
//

#ifndef remote_execute_utils_h
#define remote_execute_utils_h

#include "Header.h"
#include "sock_act.h"
#include <sys/mman.h>       /* mmap */

char *do_parse(const char *buf);

void do_resolve(char filetype[], const char path[]);

void *mymmap(void *addr, size_t len, int prot, int flags, int fd, off_t offset);

void sock_writen(int fd, void *filebuf, size_t n);

void *do_trans(void *acfd);

#endif
